// src/main.js

// 引入全局样式
import "./styles/global.css";

// 初始化导航栏
import { Navbar } from "./components/Navbar/Navbar.js";
const navbar = new Navbar();
document.body.prepend(navbar.render());

// 初始化侧边栏
import { createSidebar } from "./components/Sidebar/Sidebar.js";
const sidebar = createSidebar();
document.body.appendChild(sidebar.render());

// 示例：动态加载内容
const mainContent = document.createElement("div");
mainContent.className = "main-content";
mainContent.innerHTML = `
  <h1>Welcome to My App</h1>
  <p>This is a pure HTML + JavaScript project.</p>
`;
document.body.appendChild(mainContent);
